﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using LINQToolKit;

namespace  LINQToolKit.Douban.Entities
{
    public sealed class People : EntityBase
    {
        public Location Location { get; set; }
        public AssociationSet<People> Friends { get; set; }
        public AssociationSet<People> Contacts { get; set; }
        public AssociationSet<Review> Reviews { get; set; }
        public AssociationSet<Collection> Books { get; set; }
        public AssociationSet<Collection> Musics { get; set; }
        public AssociationSet<Collection> Movies { get; set; }
        public AssociationSet<MiniBlog> ContactMiniBlogs { get; set; }
        public AssociationSet<MiniBlog> MiniBlogs { get; set; }
        public AssociationSet<Note> Notes { get; set; }
        public AssociationSet<Event> Events { get; set; }
        public AssociationSet<Event> InitiateEvents { get; set; }
        public AssociationSet<Event> ParticipateEvents { get; set; }
        public AssociationSet<Event> WishEvents { get; set; }
        public AssociationSet<Recommendation> Recommends { get; set; }
        public AssociationSet<Mail> Mails { get; set; }
        public AssociationSet<Mail> UnReadMails { get; set; }
        public AssociationSet<Mail> OutboxMails { get; set; }

        public string Icon
        {
            get
            {
                return base.GetLink("icon");
            }
        }

        public string HomePage
        {
            get 
            {
                return base.GetLink("homepage");
            }
        }
    }
}